home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 0022-3.564 / dmg-3421 / gfa_basi.c / neo_load.txt / neo_load.txt
Text File  |  1997-06-21  |  2KB  |  52 lines

  1. NEO PICTURE LOADER
  2.  
  3. Oldie but goldie,
  4.  
  5. YEs weel not many people seem to make there pictures in Neo Chrome 
  6. anymore, but for those that still do. First there is an explemation
  7. of how a picture made in Neo looks like in "normal" words. 
  8. It may be a bit tecnical but is't always nice to know...
  9.  
  10.  
  11. 1 long   (4  bytes)       resolution (0=Low res, 1=Med res, 2=High res)
  12. 16 words (32 bytes)       palette
  13. 12 bytes                  filename ("        .   ")
  14. 1 byte                    Left color animation limit (starting color number)
  15. 1 byte                    Right color animation limit (ending color number)
  16. 1 byte                    color rotation speed
  17. 1 byte                    color rotation direction
  18. 1 long   (4  bytes)       color rotation duration (number of iterations)
  19. 18 longs (72 bytes)       reserved for expansion
  20. 16000 words (32000 bytes) picture data (screen memory)
  21. -----------
  22. 32128 bytes     total
  23.  
  24.  
  25. Oke now you have seen what it looks like in technical terms, but now you
  26. want ot see your own picture on screen. This small listing is ofcourse made
  27. again in GFA Basic and you can find it in the folder GFA_PROGS as file
  28. unter the name NEO_LOAD.LST and you may MERGE it in GFA Version 3.xx.
  29. If you want more info about the animation part wrtie to use and maybe 
  30. we will do so in issue 4 ( We must have something left to write about
  31. every issue !!!).
  32.  
  33.  
  34.  
  35. OPEN "i",#1,"a:\kid.neo"        ! open picture file...
  36. dummy$=INPUT$(4,#1)             ! skip resolution info...
  37. a$=INPUT$(32,#1)                ! read color info (16 colors)
  38. VOID XBIOS(6,L:VARPTR(a$))      ! setup colors...
  39. dummy$=INPUT$(92,#1)            ! skip animation info 128 bytes (92=128-4-32)
  40. BGET #1,XBIOS(2),32000          ! get the picture info
  41. CLOSE #1                        ! close picture file
  42. VOID INP(2)                     ! get key.
  43.  
  44.  
  45. Well and if everything is well you could see (after you run this program
  46. in GFA Basic ofcourse) your own lovely (????) picture. Oke that's it again
  47. see you next time,
  48.  
  49.                                            Bonus Software
  50.  
  51.  
  52.